Skip to content

Replace the action helper and modifier with bound methods and on - #293

Merged
phndiaye merged 11 commits into
feature/ember-upgrade-4-to-7from
pn/cd-375-action-helper
Nov 5, 2026
Merged

phndiaye merged 11 commits into
feature/ember-upgrade-4-to-7from
pn/cd-375-action-helper

Conversation

@phndiaye

@phndiaye phndiaye commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Templates: every {{action}} helper/modifier in the classic hyper-table (views, facetting, column, index, filters/cell renderers; 11 files) becomes this.x, (fn this.x args) or {{on "click" this.x}}. Classic components move their actions hash entries to action(fn), which binds and keeps the hash entry (send still works). bubbles=false is kept as event.stopPropagation() in the handler; handlers called with no args before (toggleEditing, setFieldCategory) get a wrapper or an explicit undefined so the click event does not become their first argument. The filters-renderer reset chain (_super) moves to a _resetFilters method so the override order is unchanged.

Integration tests for each interaction were added first and pass on the old code (27 tests). {{on}} on non-interactive elements adds no-invalid-interactive template-lint errors (lint was already failing). Existing quirks left as is: existenceFilterChanged sets a read-only computed (asserts in dev), the focusout handler passes the event as autosave.

Base: #292 (pn/cd-375-inject-to-service). Part of CD-375, M2 wave 3.

@phndiaye
phndiaye requested a review from a team as a code owner November 2, 2026 15:23
@phndiaye
phndiaye requested review from edouardmisset, nathalieArnoux and olxmpe and removed request for a team November 2, 2026 15:23
@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

CD-375

Base automatically changed from pn/cd-375-inject-to-service to feature/ember-upgrade-4-to-7 November 2, 2026 15:29
phndiaye and others added 4 commits November 2, 2026 17:15
Replace the Ember array extensions with native arrays in the classic hyper-table
Move to Ember 6.12.1 and ember-cli 6.12.0
@phndiaye phndiaye self-assigned this Nov 5, 2026
@phndiaye
phndiaye merged commit 95348f2 into feature/ember-upgrade-4-to-7 Nov 5, 2026
4 checks passed
@phndiaye
phndiaye deleted the pn/cd-375-action-helper branch November 5, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants